#include "industrial_robot_control/core/application.h"
#include "industrial_robot_control/utils/log.h"

int main(int argc, char**argv) {
    try {
        // 初始化应用程序
        IndustrialRobotControl::Core::Application app(argc, argv);
        
        // 运行应用程序
        app.run();
        
        return 0;
    } catch (const std::exception& e) {
        LOG_ERROR("Application terminated with error: {}", e.what());
        return 1;
    } catch (...) {
        LOG_ERROR("Application terminated with unknown error");
        return 1;
    }
}
